package com.ruoyi.business.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备日志对象 t_device_log
 * 
 * @author laoguo
 * @date 2025-08-12
 */
public class TDeviceLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 日志ID */
    @Excel(name = "日志ID")
    private Long logId;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long deviceId;

    /** 设备SN */
    @Excel(name = "设备SN")
    private String deviceSn;

    /** 日志类型(0状态变更 1操作指令 2异常告警) */
    @Excel(name = "日志类型(0状态变更 1操作指令 2异常告警)")
    private String logType;

    /** 日志内容 */
    @Excel(name = "日志内容")
    private String logContent;

    public void setLogId(Long logId) 
    {
        this.logId = logId;
    }

    public Long getLogId() 
    {
        return logId;
    }

    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }

    public void setDeviceSn(String deviceSn) 
    {
        this.deviceSn = deviceSn;
    }

    public String getDeviceSn() 
    {
        return deviceSn;
    }

    public void setLogType(String logType) 
    {
        this.logType = logType;
    }

    public String getLogType() 
    {
        return logType;
    }

    public void setLogContent(String logContent) 
    {
        this.logContent = logContent;
    }

    public String getLogContent() 
    {
        return logContent;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("logId", getLogId())
            .append("deviceId", getDeviceId())
            .append("deviceSn", getDeviceSn())
            .append("logType", getLogType())
            .append("logContent", getLogContent())
            .append("createTime", getCreateTime())
            .toString();
    }
}
